/**
 * @Filename: fileutil.h
 * @Description:
 * @Author: chengxiaojun
 * @Email: csforgood@gmail.com
 * @Time: 2011/11/11
 */

#ifndef __FILEUTIL_H__

#define  __FILEUTIL_H__

#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h> 
#include <string>
#include <fcntl.h>
#include <stdio.h>
#include <vector>
//#include <cstring>

using namespace std;

bool isDir(const char* dir);

bool isFile(const char* file);

void trim(char *szInput);

void scanDir(const char* dir, std::vector<std::string> &filePath);

#endif
